]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
shellEntry: Remove isPassword Property
authorUmang Jain <mailumangjain@gmail.com>
Mon, 16 Dec 2019 18:41:49 +0000 (00:11 +0530)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 17 Dec 2019 22:08:43 +0000 (23:08 +0100)
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/619

js/ui/shellEntry.js

index 79a38bf56c8fbccf96beada9a44ce1511ed25671..53aed604966fa1c67a74b533fe46acb01306f188 100644 (file)
@@ -41,24 +41,6 @@ var EntryMenu = class extends PopupMenu.PopupMenu {
         this._passwordItem = item;
     }
 
-    get isPassword() {
-        return this._passwordItem != null;
-    }
-
-    set isPassword(v) {
-        if (v == this.isPassword)
-            return;
-
-        if (v) {
-            this._makePasswordItem();
-            this._entry.input_purpose = Clutter.InputContentPurpose.PASSWORD;
-        } else {
-            this._passwordItem.destroy();
-            this._passwordItem = null;
-            this._entry.input_purpose = Clutter.InputContentPurpose.NORMAL;
-        }
-    }
-
     open(animate) {
         this._updatePasteItem();
         this._updateCopyItem();
@@ -144,10 +126,9 @@ function addContextMenu(entry, params) {
     if (entry.menu)
         return;
 
-    params = Params.parse(params, { isPassword: false, actionMode: Shell.ActionMode.POPUP });
+    params = Params.parse(params, { actionMode: Shell.ActionMode.POPUP });
 
     entry.menu = new EntryMenu(entry);
-    entry.menu.isPassword = params.isPassword;
     entry._menuManager = new PopupMenu.PopupMenuManager(entry,
                                                         { actionMode: params.actionMode });
     entry._menuManager.addMenu(entry.menu);